const myVar = {
    target: {
        value: "ABC"
    }
}

console.log(myVar.target.value.toLowerCase?.());